package com.quanyan.club.pullclub.utils;

import org.apache.commons.lang3.RandomStringUtils;

/**
 * Created by xian-guo on 2017/2/16.
 */
public class NumUtils {

    public static final float[] f =new float[]{
            0.00f,0.10f,0.20f,0.30f,0.40f,0.50f,0.60f,0.70f,0.80f,0.90f,1.00f
    };

    public static boolean isCurrectNum(float a){
        for(int i=0;i<f.length;i++){
            if(f[i]==a)return true;
        }
        return false;
    }

    public static String getFixdRandomString(int num) {
        return RandomStringUtils.randomAlphanumeric(num);
    }
}
